import request from "@/utils/request";

// 获取地区树形数据
export const getRegionTree = () => request.get("/common/region/tree");

// 获取学生列表
export const getStudentList = (data) => request.post("/biz/common/student/combo", data);

// 获取教师列表
export const getTeacherList = (data) => request.post("/biz/common/teacher/combo", data);

/* 获取下拉框数据 */
// 获取年级下拉框数据
export const getGradeDropdown = (data) => request.post("/biz/dropdown/grade", data);
// 获取高校下拉框数据
export const getUniversityDropdown = (data) => request.post("/biz/dropdown/university", data);
// 获取培养单位下拉框数据
export const getTrainDeptDropdown = (data) => request.post("/biz/dropdown/trainDept", data);
export const getDeptTree = (params) => request.get("/common/dept/tree1", {params});
// 获取培养类型下拉框数据
export const getTrainTypeDropdown = (data) => request.post("/biz/dropdown/trainType", data);
// 获取培养领域下拉框数据
export const getTrainFieldDropdown = (data) => request.post("/biz/dropdown/trainField", data);
// 获取培养阶段下拉框数据
export const getTrainStatusDropdown = (data) => request.post("/biz/dropdown/trainStatus", data);
// 获取毕业留企情况下拉框数据
export const getGraduateStayDropdown = (data) => request.post("/biz/dropdown/graduateStay", data);

// 获取搜索条件的所有选项
export const getSearchOptions = (data) => request.post("/biz/dropdown/search", data);